import Http from '../http';

export const listRoleSimple = function() {
    return Http.get('/sys-role/listSimple')
}

export const selectRolePage = function(params:{}) {
    return Http.get('/sys-role/page',params)
}

export const detailRole = function (id: Number) {
    return Http.get("/sys-role/detail/"+id)
};

export const removeRole = function (id: Number) {
    return Http.delete("/sys-role/remove/"+id)
};

export const addRole = function (data: object) {
    return Http.post("/sys-role/add",data)
};

export const editRole = function (data: object) {
    return Http.post("/sys-role/edit",data)
};

export const statusRole = function (data: object) {
    return Http.post("/sys-role/status",data)
};

export const permissionRole = function (data: object) {
    return Http.post("/sys-role/permission",data)
};
export const unbindUser = function (data: object) {
    return Http.post("/sys-role/unbindUser",data)
};